import request from '@/utils/request'

//获取知识详细信息
export function getContent(id){
  return request({
    url:'/knowleContent/'+id,
    method:'get'
  })
}

//获取知识历史版本
export function getVersion(id){
  return request({
    url:'/knowleContent',
    method:'get',
    params: {id}
  })
}

//根据搜索内容获取知识库内容
export function getMateContent(content){
  return request({
    url:'/knowleContent/mate',
    method:'get',
    params:content
  })
}

//修改知识内容
export function updateContent(data){
  return request({
    url:'/knowleContent',
    method:'put',
    data:data
  })
}

export function getClaifCount(id){
  return request({
    url:'/knowleContent/count/'+id,
    method:'get',
  })
}


